package xyz.hubery.mappers;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import xyz.hubery.domain.Coin;
import xyz.hubery.dto.CoinDTO;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CoinMappers {

    CoinMappers INSTANCE = Mappers.getMapper(CoinMappers.class);

    Coin entityToDTO(CoinDTO coinDTO);

    CoinDTO dtoToEntity(Coin coin);

    List<Coin> entityToDTO(List<CoinDTO> coinDTO);

    List<CoinDTO> dtoToEntity(List<Coin> coin);
}
